home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow / DVD / DVDSample / stringutil.h < prev    next >
Encoding:
Text File  |  2001-10-31  |  1.4 KB  |  35 lines

  1. //------------------------------------------------------------------------------
  2. // File: StringUtil.h
  3. //
  4. // Desc: This header file contains several enum to string conversion functions
  5. //       which are used throughout the rest of the program.
  6. //
  7. // Copyright (c) 1999-2001 Microsoft Corporation. All rights reserved.
  8. //------------------------------------------------------------------------------
  9.  
  10.  
  11.  
  12.  
  13. //------------------------------------------------------------------------------
  14. // Name: AsStr()
  15. // Desc: This overloaded function converts enumerationd into human-readable 
  16. //       text.  In most cases, it utilizes the ENUM_CASE macro to create
  17. //       generic strings out of the enumerated types.  If you want more user-friendly
  18. //       strings, use the form found in the DVD_TextStringType function.
  19. //------------------------------------------------------------------------------
  20.  
  21. const TCHAR* AsStr( DVD_TextStringType IDCD );
  22. const TCHAR* AsStr( DVD_AUDIO_LANG_EXT ext );
  23. const TCHAR* AsStr( DVD_SUBPICTURE_LANG_EXT ext );
  24. const TCHAR* AsStr( DVD_AUDIO_APPMODE ext );
  25. const TCHAR* AsStr( DVD_AUDIO_FORMAT  ext );
  26. const TCHAR* AsStr( DVD_KARAOKE_ASSIGNMENT ext );
  27. const TCHAR* AsStr( DVD_SUBPICTURE_TYPE type );
  28. const TCHAR* AsStr( DVD_SUBPICTURE_CODING type );
  29. const TCHAR* AsStr( DVD_VIDEO_COMPRESSION type );
  30. const TCHAR* AsStr( bool b );
  31. const TCHAR* AsStr( BOOL b );
  32. const TCHAR* KaraokeAsStr (WORD type);
  33.  
  34.  
  35.